﻿//using System;

namespace ServerASISTSYS.Cryptography
{
    class SimpleEncryptor : BaseCrypto
    {
        public SimpleEncryptor(byte[] key) : base(key) { }

        protected override byte DoByte(byte b)
        {
            byte b2 = Multiply257((byte)(b + currentKey), currentKey);
            currentKey = Multiply257((byte)(b + b2), currentKey);
            return b2;
        }
    }
}
